package com.unionftech.content_login.api.mock

import com.unionftech.common.bean.ResponseResult
import com.unionftech.content_login.api.mock.bean.UserInfo
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface LoginMockApi {
    @FormUrlEncoded
    @POST("/request/login")
    suspend fun requestLogin(
        @Field("phone") phone: String,
        @Field("areaCode") areaCode: String,
        @Field("email") email: String,
        @Field("password") pwd: String,
        @Field("loginType") loginType: Int,
    ): ResponseResult<UserInfo>

    @FormUrlEncoded
    @POST("/user/forgot/password")
    suspend fun requestForgotPassword(
        @Field("phone") phone: String,
        @Field("areaCode") areaCode: String,
        @Field("email") email: String,
        @Field("password") pwd: String,
        @Field("type") type: Int
    ): ResponseResult<String>
}